package com.hzgj.bcl.soa.registry;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * Created by warning5 on 17-2-17.
 */
public interface RegistryUpdater {

    Result downService(String service, String ipAndPort) throws Exception;

    Result upService(String service, String ipAndPort) throws Exception;

    @Getter
    @AllArgsConstructor
    @ToString
    class Result implements Serializable {
        boolean success;
        String info;
    }
}
